import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false;
App.mpType = 'app';

import {IMG_URL,UPLOAD_URL,NO_DATA,PHONE,DEBOUNCE_TIME} from './env.js';

Vue.prototype.$imgUrl = IMG_URL;
Vue.prototype.$uploadUrl=UPLOAD_URL;
Vue.prototype.$noData = NO_DATA;
Vue.prototype.$phone = PHONE;
Vue.prototype.$debounceTime = DEBOUNCE_TIME;

//富文本
// #ifdef	MP-ALIPAY
import parseHtml from '@/common/html-parser.js';
Vue.prototype.$parseHtml=parseHtml;
// #endif


import $utils from './common/utils.js';;
Vue.prototype.$utils = $utils;


import uView from 'uview-ui'
Vue.use(uView);

import $urlBase64 from './common/urlBase64.js'
Vue.prototype.$urlBase64 = $urlBase64;

import myHome from '@/components/uni-floating/index.vue'		//引入组件

Vue.component('my-home',myHome)	

// #ifdef	MP-WEIXIN
import ygWebView from '@/wxcomponents/yg-web-view/yg-web-view'
Vue.component('yg-web-view', ygWebView);
// #endif


import store from '@/store';
let vuexStore = require('@/store/$u.mixin.js');
Vue.mixin(vuexStore);

import * as filter from './common/filter.js';
Object.keys(filter).forEach(key => {
	Vue.filter(key, filter[key])
});

const app = new Vue({
	store,
	...App
});



import httpInterceptor from '@/common/http.interceptor.js';
Vue.use(httpInterceptor, app);

import httpApi from '@/common/http.api.js';
Vue.use(httpApi, app);

app.$mount()
